clear;
close all
tradep_grid = 0.05:0.01:0.9;
for i = 1:length(tradep_grid)
    i
    WW = tradep_grid(i);
    fileID = fopen('tradep.txt','w');
    fprintf(fileID,'%12.8f ',WW);
    fprintf(fileID,'\n');
    fclose(fileID);
    calibration_main
    destination = ['intermediate_results/output' num2str(i) '.txt'];
    copyfile('output.txt', destination);
end